import request from '@/utils/request'
export function getTransList(params) {
  return request({ url: '/report/transFlow/list', params,
    method: 'GET'
  })
}
export function delTrans(data) {
  return request({ url: '/report/transFlow/del', data, method: 'POST'
  })
}
export function getTransInfo(id) {
  return request({ url: `/report/transFlow/info/${id}`, method: 'GET'
  })
}
export function saveOrUpdateTrans(data, id) {
  return request({ url: `/report/transFlow/info/${id ? 'update' : 'save'}`, data, method: 'POST'
  })
}
export function getHomeInfo() {
  return request({ url: '/home/info', method: 'GET'
  })
}
export function getUserList(params) {
  return request({ url: '/report/user/list', params, method: 'GET'
  })
}
